<div class="layui-form-item">
    <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
        <legend style="display: block">{$index+1}.{$label}</legend>
    </fieldset>
    <div class="layui-input-block">
        <input type="text" name="{$name}" id="q{$index}" lay-verify="required"  autocomplete="off" class="layui-input">
    </div>
</div>